<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="bs/css/bootstrap.css">
<script src="bs/js/jquery-3.3.1.min.js"></script>
<script src="bs/js/bootstrap.min.js"></script>
<title>电影分享</title>
<style type="text/css">
body {
	padding-top: 30px;
	font-size: 15px;
	background-image: url("bs/image/kk.jpg");
}
</style>
</head>
<body>
	<div class="container">
		<h2 align="center" style="color: gray;">
			电影bt  <small>想看的电影可以留言给我^_^</small>
		</h2>
		<div align="right">
			<a href="/index"><h3>首页</h3></a>
		</div>
		<c:forEach items="${movie}" var="movie">
			<h3 style="color: gray;">电影名：${movie.name }</h3>
			<h4 style="color: gray;">
				迅雷磁力链接：<a href="${movie.path}">${movie.path}</a>
			</h4>
		</c:forEach>

		<nav aria-label="Page navigation">
			<ul class="pagination" style="margin-left: 43%; margin-top: 30px">
				<!--把后台传来的 查询条件 取出来 拼在后面-->
				<li><a href="/movie?page=${pageInfo.prePage }"
					aria-label="Previous"> <span aria-hidden="true">&laquo;</span>
				</a></li>
				<c:forEach begin="1" step="1" end="${pageInfo.pages }" var="i">
					<li class="${i eq pageInfo.pageNum ? 'active':''}"><a
						href="/movie?page=${i }">${i }</a></li>
				</c:forEach>
				<li><a href="/movie?page=${pageInfo.nextPage}"
					aria-label="Next"> <span aria-hidden="true">&raquo;</span>
				</a></li>
			</ul>
			<div
				style="font-weight: 700; font-family: cursive; margin-left: 93%; margin-top: -50px"
				class="text-warning">Total：${pageInfo.total }</div>
		</nav>
	</div>

</body>
</html>